/**
 * @author yexy
 * @date 2020/6/2 7:08 下午
 * @description
 * 手机卡类
 */
public class SIMCard {
    private EnumSIMType type;
    private String no;
    private String userName;
    private String password;
    private double balance;
    private int callTimeMinutes;
    private String netFlow;    //卡号 + 用户名 + 当前余额

    public SIMCard(){
    }

    public SIMCard(EnumSIMType type, String no, String userName, String password, double balance, int callTimeMinutes, String netFlow) {
        this.type = type;
        this.no = no;
        this.userName = userName;
        this.password = password;
        this.balance = balance;
        this.callTimeMinutes = callTimeMinutes;
        this.netFlow = netFlow;
    }

    public EnumSIMType getType() {
        return type;
    }

    public void setType(EnumSIMType type) {
        this.type = type;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getCallTimeMinutes() {
        return callTimeMinutes;
    }

    public void setCallTimeMinutes(int callTimeMinutes) {
        this.callTimeMinutes = callTimeMinutes;
    }

    public String getNetFlow() {
        return netFlow;
    }

    public void setNetFlow(String netFlow) {
        this.netFlow = netFlow;
    }

    public void show(){
        System.out.println("---------------------" + this.getClass().getName() + "---------------------");
        System.out.println("卡号是：" + this.no);
        System.out.println("用户名是：" + this.userName);
        System.out.println("余额是：" + this.balance);
    }

}
